package com.it.plic.Menthod;

/**
 * @author げっしょく
 * @date 2021/8/9
 */
public class Student {
    private String name;
    private int age;
    private int menoy = 100;

    public Student(){
    }

    private Student(String name) {
        this.name = name;
        System.out.println("私有有参： name：" + name);
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println("公共有参： name：" + name + "age：" + age);

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getMenoy() {
        return menoy;
    }

    public void setMenoy(int menoy) {
        this.menoy = menoy;
    }
}
